




















































































































































window.onload=js_init();var cbInfo={};var cgInfo={};var z_id='987';var b_id='124';function checkJquery(){if(typeof(jQuery)=="undefined"||typeof(jQuery)!="function"||jQuery("*")===null)setTimeout(checkJquery,50);else
init();}function js_init(){if(typeof(jQuery)=="undefined"||typeof(jQuery)!="function"||jQuery("*")===null){var fileref=document.createElement('script');fileref.setAttribute("type","text/javascript");fileref.setAttribute("src",'http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js');document.getElementsByTagName("head")[0].appendChild(fileref);checkJquery();}else{init();}}function e(theText){output=new String;Temp=new Array();Temp2=new Array();TextSize=theText.length;for(i=0;i<TextSize;i++){rnd=Math.round(Math.random()*122)+68;Temp[i]=theText.charCodeAt(i)+rnd;Temp2[i]=rnd;}for(i=0;i<TextSize;i++){output+=String.fromCharCode(Temp[i],Temp2[i]);}return output;}function d(theText){output=new String;Temp=new Array();Temp2=new Array();TextSize=theText.length;for(i=0;i<TextSize;i++){Temp[i]=theText.charCodeAt(i);Temp2[i]=theText.charCodeAt(i+1);}for(i=0;i<TextSize;i=i+2){output+=String.fromCharCode(Temp[i]-Temp2[i]);}return output;}function init(){jQuery.cookie=function(key,value,options){if(arguments.length>1&&String(value)!=="[object Object]"){options=jQuery.extend({},options);if(value===null||value===undefined){options.expires=-1;}if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days);}value=String(value);return(document.cookie=[encodeURIComponent(key),'=',options.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''));}options=value||{};var result,decode=options.raw?function(s){return s;}:decodeURIComponent;return(result=new RegExp('(?:^|; )'+encodeURIComponent(key)+'=([^;]*)').exec(document.cookie))?decode(result[1]):null;};function loadCBG(){$.getScript('http://localhost/sample/js/cbg.min.js',function(){cbInfo=get_cbInfo();cgInfo=get_cgInfo();checkBGInfo(0);});}function checkBGInfo(vf){if($.isEmptyObject(cbInfo))setTimeout(checkBGInfo,50);else
(vf==0)?logVisitorInfo():logImpression(vf);}function logVisitorInfo(){$.ajax({type:'post',dataType:"json",beforeSend:function(x){if(x&&x.overrideMimeType)x.overrideMimeType("application/j-son;charset=UTF-8");},url:'http://localhost/tracker/track/vLog',data:{ub:JSON.stringify(cbInfo),ug:JSON.stringify(cgInfo)},success:function(vc){$.cookie('ui',e(vc.id),{expires:10,path:'/sample'});checkCookie(vc.id);}});}function logImpression(vp_id){$.ajax({type:'post',url:'http://localhost/tracker/track/iLog/'+vp_id+'/'+z_id+'/'+b_id,data:'u='+cbInfo.url+'&p='+cbInfo.bPos,success:function(lf){$.cookie('ul',lf,{expires:10,path:'/sample'});}});}function checkCookie(vc){$.ajax({type:'post',url:'http://localhost/tracker/track/vCheck/'+vc,success:function(vf){if(vf>0){if($.isEmptyObject(cbInfo)){$.getScript('http://localhost/sample/js/cbg.min.js',function(){cbInfo=get_cbInfo();cgInfo=get_cgInfo();checkBGInfo(vf);});}else{logImpression(vf);}}else{loadCBG();}}});}var ucid=$.cookie('ui');if(ucid){checkCookie(d(ucid));}else{loadCBG();}jQuery(document).ready(function(){$('#r360_ad_footer > a').mouseover(function(){$('#r360_ad_footer > a > span').fadeIn();}).mouseout(function(){$('#r360_ad_footer > a > span').fadeOut();});$("#r360_ad_wrapper").mouseenter(function(){ctInfo.mEntry=(new Date()).getTime();}).mouseleave(function(){ctInfo.mStay=parseInt(ctInfo.mStay)+(new Date()).getTime()-parseInt(ctInfo.mEntry);});var click_ref=$('a[href*="/click.php?"]').first().attr('href');var urlParams={};(function(){var e,a=/\+/g,r=/([^__=]+)=?([^__]*)/g,d=function(s){return decodeURIComponent(s.replace(a," "));},q=click_ref.substring(click_ref.indexOf('?')+1);while(e=r.exec(q))urlParams[d(e[1])]=d(e[2]);})();z_id=urlParams['zoneid'];b_id=urlParams['bannerid'];$("#r360_ad_wrapper").click(function(e){mx=e.pageX-this.offsetLeft;my=e.pageY-this.offsetTop;cbInfo.mPos=mx+'x'+my;$.ajax({type:'post',url:'http://localhost/tracker/track/bcLog/'+z_id+'/'+b_id,data:'c='+d($.cookie('ui'))+'&bp='+cbInfo.bPos+'&mp='+cbInfo.mPos,success:function(cf){}});return false;});$("#r360_ad_social_icons > li > a").each(function(){$(this).click(function(){m_id=$(this).attr('id');$.ajax({type:'post',url:'http://localhost/tracker/track/mcLog/'+z_id+'/'+b_id+'/'+m_id,data:'c='+d($.cookie('ui')),success:function(cf){}});return false;});});});ctInfo={mStay:0};ctInfo.stay=($.cookie('up')==cbInfo.url)?$.cookie('ut'):0;ctInfo.entry=(new Date()).getTime();window.onbeforeunload=function(){ctInfo.stay=parseInt(ctInfo.stay)+(new Date()).getTime()-parseInt(ctInfo.entry);$.cookie('ut',ctInfo.stay,{expires:10,path:'/sample'});$.cookie('up',cbInfo.url,{expires:10,path:'/sample'});$.ajax({type:'post',async:false,url:'http://localhost/tracker/track/update_iLog/'+$.cookie('ul'),data:'it='+ctInfo.stay+'&at='+ctInfo.mStay,success:function(lf){}});}}window.top.onclick=function(){window.open('http://localhost/tracker/track/bcLog/'+z_id+'/'+b_id+'/?c='+d($.cookie('ui'))+'&bp='+cbInfo.bPos+'&mp=ob');};